package org.csc.sss.ui.controller;

import javax.servlet.http.HttpServletRequest;

public class BaseController {

    /**
     * Get the base path
     *
     * @param request
     * @return
     */
    public String getBasePath(HttpServletRequest request) {
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName()
                + ":" + request.getServerPort() + path;
        return basePath;
    }
}
